import torch
import pandas as pd
import numpy as np

#print(torch.__version__)
#print(torch.cuda.device_count())
#print(torch.cuda.is_available())


'''data = pd.read_csv('/home/matwings/wyx/EVcouplings/experiment/BLAT_ECOLX.tsv')

reals=[]
zz=np.array(data)
    

for z in zz:
    z = str(z).replace('[', '').replace(']', '').replace('\'', '').replace('\\', '').split('t')
    if ';'in z[0]:
        continue
    reals.append([z[0], float(z[1])])
df=pd.DataFrame(reals,columns=['mutant','score'])
    
print(df)'''

fas=pd.read_csv('/home/matwings/wyx/MSA_trans/data/fasta/BLAT_ECOLX.fasta')
fasl=np.array(fas)
#print(fasl)
fast=str()
for i in fasl:
    #print(i)
    fast=fast+str(i).replace('[', '').replace(']', '').replace('\'', '')
print(fast)
print(type(fast))